﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.ComponentModel;

using P2PLib.Client.DataModel;
using P2PLib.Common.DataModel;

namespace P2PLib.Client.ViewModel
{
    /// <summary>
    /// 该类为单个的搜索结果;
    /// </summary>
    public class SearchResultViewModel 
    {
        private CFileInfo file;
        private List<ClientInfo> source;

        public SearchResultViewModel(CFileInfo f)
        {
            this.file = f;
            this.source = new List<ClientInfo>();
        }

        public SearchResultViewModel(CFileInfo f, ClientInfo src)
        {
            this.file = f;
            this.source = new List<ClientInfo>();
            this.source.Add(src);
        }
       

        #region Property
        public CFileInfo File
        {
            get
            {
                return file;
            }
            set
            {
                this.file = value;
            }
        }

        public List<ClientInfo> Source
        {
            get
            {
                return this.source;
            }
            set
            {
                this.source = value;
            }
        }
        #endregion //property
    }
}
